﻿using System;
using DapperExtensions.Mapper;

namespace ZilLion.Service.WeChatMall.Domain.Entitys.ShopInfo
{
    public class ShopExtraInfoEntity
    {
        /// <summary>
        ///     店铺id
        /// </summary>
        public long ShopId { get; set; }

        /// <summary>
        ///     月售出多少单(随机数, 根据后台权重随机?)
        /// </summary>
        public int ShopSellCount { get; set; }

        /// <summary>
        ///     修改时间
        /// </summary>
        public DateTime UpdatedTime { get; set; }
    }

    public class ShopExtraInfoEntityMapper : ClassMapper<ShopExtraInfoEntity>
    {
        public ShopExtraInfoEntityMapper()
        {
            Table("shopextrainfo");
            Map(f => f.ShopId).Column("shopid").Key(KeyType.Assigned);
            Map(f => f.ShopSellCount).Column("shopsellcount");
            Map(f => f.UpdatedTime).Column("updatedtime");
        }
    }
}